package cn.com.server.config.bean;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component    
@ConfigurationProperties(prefix="app-shiro") //接收application.yml中的myProps下面的属性
public class AppShiro {
	
	private String shiroLoginUrl;
	
	private String shiroSuccessUrl;
	
	List<Map<String,String>> shiroChainDefinitionMap = new ArrayList<>();

	public String getShiroLoginUrl() {
		return shiroLoginUrl;
	}

	public void setShiroLoginUrl(String shiroLoginUrl) {
		this.shiroLoginUrl = shiroLoginUrl;
	}

	public List<Map<String, String>> getShiroChainDefinitionMap() {
		return shiroChainDefinitionMap;
	}

	public void setShiroChainDefinitionMap(List<Map<String, String>> shiroChainDefinitionMap) {
		this.shiroChainDefinitionMap = shiroChainDefinitionMap;
	}

	public String getShiroSuccessUrl() {
		return shiroSuccessUrl;
	}

	public void setShiroSuccessUrl(String shiroSuccessUrl) {
		this.shiroSuccessUrl = shiroSuccessUrl;
	}

}
